module.exports = {
	//点击事件
	tap: function(name, callback) {
		$(document).on('click', name, callback)
	},
	//change事件
	change: function(name, callback) {
		$(document).on('change', name, callback)
	},
	//其他事件
	event: function(event, name, callbak) {
		$(document).on(event, name, callback)
	},
	//批量事件
	more: function(events) {
		if(events && events.length > 0) {
			for (var i = 0; i < events.length; i++) {
				if(events[i] && events[i].length >= 2) {
					var _eventName = 'click';
					var _name = document;
					if(events[i].length >= 3) {
						_eventName = events[i][2];
					}
					if(events[i].length == 4) {
						_name = events[i][3];
					}
					$(_name).on(_eventName, events[i][0], events[i][1])
				}
			}
		}
	}
}